package pref.junx.flybird.fragment.daily.event;


import java.util.List;

import pref.junx.flybird.api.HttpMethosds;
import pref.junx.flybird.entity.Bean;
import pref.junx.flybird.entity.DailyBean;
import pref.junx.flybird.entity.Daily_result;
import pref.junx.flybird.entity.Event;
import pref.junx.flybird.entity.ResultBean;
import pref.junx.flybird.tools.RxSchedulers;
import rx.Observable;

/**
 * Created by acer on 2017/8/4.
 */

public class DailyModlel implements DailyContract.Modle{

    @Override
    public Observable<Daily_result> doUpto(Bean<DailyBean> beanBean) {
//        return HttpMethosds.getInstance().retrofitServicel
//                .reportDaily(beanBean)
//                .compose(RxSchedulers.io_main());
        return null;
    }

    @Override
    public Observable<ResultBean<List<Event>>> getEvents(int string) {
                return HttpMethosds.getInstance().retrofitServicel
                .getUserEvents(string)
                .compose(RxSchedulers.io_main());
    }
}
